<!DOCTYPE html>
<html>
	<head>
		<title>For Loop</title>
	</head>
	<body>
		<?php
			$char = $_GET["char"];
			$num = $_GET["num"];
			if($num>=1&&$num<=9999){
				for($i=1; $i<=$num; $i++)
					{
						echo "[".$i."]".$char."<br>";
					}
			}else{
				echo "Error! loop number. It must more than 0 or less than 10,000.";
			}
		?>
	</body>
</html>